﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AdventureWorks.Exceptions;

namespace AdventureWorks.Entities
{
	public abstract class Entity
	{

		public abstract int ID { get; set; }
		public abstract DateTime ModifiedDate { get; set; }

		public abstract Boolean Validate();

		protected void ThrowInvalidEntityException(String message)
		{
			throw new EntityException(this, message);
		}

		
	}
}
